home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-03-04 | 7.3 KB | 226 lines | [TEXT/MPS ] |
- ; File: E16.Window
- ;
- ;
- ; Copyright Apple Computer, Inc. 1986-92
- ; All Rights Reserved
- ;
- ;
- paramLenErr EQU $0E01 ; first word of parameter list is the wrong size
- allocateErr EQU $0E02 ; unable to allocate window record
- taskMaskErr EQU $0E03 ; reserved bits are not clear in wmTaskMask
- compileTooLarge EQU $0E04 ; Compiled text is larger than 64 KB
- wNoConstraint EQU $0000 ; No constraint on movement.
- wHAxisOnly EQU $0001 ; Horizontal axis only.
- wVAxisOnly EQU $0002 ; Vertical axis only.
- FromDesk EQU $00 ; Subtract region from desktop
- ToDesk EQU $1 ; Add region to desktop
- GetDesktop EQU $2 ; Get Handle of Desktop region
- SetDesktop EQU $3 ; Set Handle of Desktop region
- GetDeskPat EQU $4 ; Address of pattern or drawing routine
- SetDeskPat EQU $5 ; Change Address of pattern or drawing routine
- GetVisDesktop EQU $6 ; Get destop region less visible windows.
- BackGroundRgn EQU $7 ; For drawing directly on desktop.
- CheckForNewDeskMsg EQU $8 ; Force rechecking message #2
- toBottom EQU $FFFFFFFE ; To send window to bottom.
- topMost EQU $FFFFFFFF ; To make window top.
- bottomMost EQU $0000 ; To make window bottom.
- tmMenuKey EQU $00000001
- tmUpdate EQU $00000002
- tmFindW EQU $00000004
- tmMenuSel EQU $0008
- tmOpenNDA EQU $0010
- tmSysClick EQU $0020
- tmDragW EQU $0040
- tmContent EQU $0080
- tmClose EQU $0100
- tmZoom EQU $0200
- tmGrow EQU $0400
- tmScroll EQU $0800
- tmSpecial EQU $1000
- tmCRedraw EQU $2000
- tmInactive EQU $4000
- tmInfo EQU $8000
- tmContentControls EQU $00010000
- tmControlKey EQU $00020000
- tmControlMenu EQU $00040000
- tmMultiClick EQU $00080000
- tmIdleEvents EQU $00100000
- wNoHit EQU $0000 ; retained for back compatibility.
- inNull EQU $0000 ; retained for back compatibility
- inKey EQU $0003 ; retained for back compatibility
- inButtDwn EQU $0001 ; retained for back compatibility
- inUpdate EQU $0006 ; retained for back compatibility
- wInDesk EQU $0010 ; On Desktop
- wInMenuBar EQU $0011 ; On system menu bar
- wClickCalled EQU $0012 ; system click called
- wInContent EQU $0013 ; In content region
- wInDrag EQU $0014 ; In drag region
- wInGrow EQU $0015 ; In grow region, active window only
- wInGoAway EQU $0016 ; In go-away region, active window only
- wInZoom EQU $0017 ; In zoom region, active window only
- wInInfo EQU $0018 ; In information bar
- wInSpecial EQU $0019 ; Item ID selected was 250 - 255
- wInDeskItem EQU $001A ; Item ID selected was 1 - 249
- wInFrame EQU $1B ; in Frame, but not on anything else
- wInactMenu EQU $1C ; 'selection' of inactive menu item
- wClosedNDA EQU $001D ; desk accessory closed
- wCalledSysEdit EQU $001E ; inactive menu item selected
- wInSysWindow EQU $8000 ; hi bit set for system windows
- wDraw EQU $00 ; Draw window frame command.
- wHit EQU $01 ; Hit test command.
- wCalcRgns EQU $02 ; Compute regions command.
- wNew EQU $03 ; Initialization command.
- wDispose EQU $04 ; Dispose command.
- wGetDrag EQU 5 ; Return address of outline drawing handler
- wGrowFrame EQU 6 ; Draw outline of window being resized
- wRecSize EQU 7 ; Return size of additional space neeed in the windrec
- wPos EQU 8 ; Return RECT that is the window's portRect
- wBehind EQU 9 ; Return where the window should be placed in the list
- wCallDefProc EQU 10 ; Generic call to the defproc
- fHilited EQU $0001 ; Window is highlighted.
- fZoomed EQU $0002 ; Window is zoomed.
- fAllocated EQU $0004 ; Window record was allocated.
- fCtlTie EQU $0008 ; Window state tied to controls.
- fInfo EQU $0010 ; Window has an information bar.
- fVis EQU $0020 ; Window is visible.
- fQContent EQU $0040
- fMove EQU $0080 ; Window is movable.
- fZoom EQU $0100 ; Window is zoomable.
- fFlex EQU $0200
- fGrow EQU $0400 ; Window has grow box.
- fBScroll EQU $0800 ; Window has horizontal scroll bar.
- fRScroll EQU $1000 ; Window has vertical scroll bar.
- fAlert EQU $2000
- fClose EQU $4000 ; Window has a close box.
- fTitle EQU $8000 ; Window has a title bar.
- windSize EQU $00D4 ; Size of WindRec.
- wmTaskRecSize EQU $002E ; Size of WmTaskRec.
- wTrackZoom EQU $001F
- wHitFrame EQU $0020
- wInControl EQU $0021
- wInControlMenu EQU $0022
- ; offset constants for WindColor
- oframeColor EQU 0
- otitleColor EQU 2
- otBarColor EQU 4
- ogrowColor EQU 6
- oinfoColor EQU 8
- ; offset constants for WindRec
- ;owNext EQU 0 <- not included in record returned by toolbox calls
- oport EQU 0 ; Window's port
- owDefProc EQU oport+170
- owrRefCon EQU owDefProc+4
- owContDraw EQU owrRefCon+4
- owReserved EQU owContDraw+4 ; Space for future expansion
- owStrucRgn EQU owReserved+4 ; Region of frame plus content.
- owContRgn EQU owStrucRgn+4 ; Content region.
- owUpdateRgn EQU owContRgn+4 ; Update region.
- owControls EQU owUpdateRgn+4 ; Window's control list.
- owFrameCtrls EQU owControls+4 ; Window frame's control list.
- owFrame EQU owFrameCtrls+4
- ; offset constants for ParamList
- oparamLength EQU 0 ; Parameter to NewWindow.
- owFrameBits EQU 2 ; Parameter to NewWindow.
- owTitle EQU 4 ; Parameter to NewWindow.
- owRefCon EQU 8 ; Parameter to NewWindow.
- owZoom EQU 12 ; Parameter to NewWindow.
- owColor EQU 20 ; Parameter to NewWindow.
- owYOrigin EQU 24 ; Parameter to NewWindow.
- owXOrigin EQU 26 ; Parameter to NewWindow.
- owDataH EQU 28 ; Parameter to NewWindow.
- owDataW EQU 30 ; Parameter to NewWindow.
- owMaxH EQU 32 ; Parameter to NewWindow.
- owMaxW EQU 34 ; Parameter to NewWindow.
- owScrollVer EQU 36 ; Parameter to NewWindow.
- owScrollHor EQU 38 ; Parameter to NewWindow.
- owPageVer EQU 40 ; Parameter to NewWindow.
- owPageHor EQU 42 ; Parameter to NewWindow.
- owInfoRefCon EQU 44 ; Parameter to NewWindow.
- owInfoHeight EQU 48 ; height of information bar
- owFrameDefProc EQU 50 ; Parameter to NewWindow.
- owInfoDefProc EQU 54 ; Parameter to NewWindow.
- owContDefProc EQU 58 ; Parameter to NewWindow.
- owPosition EQU 62 ; Parameter to NewWindow.
- owPlane EQU 70 ; Parameter to NewWindow.
- owStorage EQU 74 ; Parameter to NewWindow.
- ; offset constants for DeskMessageRecord
- odmreserved EQU 0
- odmmessageType EQU 4
- odmdrawType EQU 6
-
- ; DoModalWindow flag values
- mwMovable EQU $8000
- mwUpdateAll EQU $4000
- mwDeskAcc EQU $0010
- mwIBeam EQU $0008
- mwMenuKey EQU $0004
- mwMenuSelect EQU $0002
- mwNoScrapForLE EQU $0001
-
- ; HandleDiskInsert flag values (bit flags)
- hdiScan EQU $8000
- hdiHandle EQU $4000
- hdiUpdate EQU $2000
- hdiReportEjects EQU $1000
- hdiNoDelay EQU $0800
- hdiDupDisk EQU $0400
- hdiCheckTapeDrives EQU $0200
- hdiUnreadable EQU $0100
- hdiMarkOffline EQU $0001
-
- ; HandleDiskInsert result flag values (bit flags)
- hdiFormatted EQU $0002
- hdiEjection EQU $0001
-
- ; constants for AlertWindow alertFlags
- awCString EQU $0000
- awPString EQU $0001
- awPointer EQU $0000
- awHandle EQU $0002
- awResource EQU $0004
- awTextFullWidth EQU $0008
- awForceBeep EQU $0010
- awButtonLayout EQU $0020
- awNoDevScan EQU $0040
- awNoDisposeRes EQU $0080
- awWatchForDisk EQU $0100
- awIconIsResource EQU $0200
- awFullColor EQU $0400
-
- ; custom defproc dRequest codes (from TN #42)
- wSetOrgMask EQU 0
- wSetMaxGrow EQU 1
- wSetScroll EQU 2
- wSetPage EQU 3
- wSetInfoRefCon EQU 4
- wSetInfoDraw EQU 5
- wSetOrigin EQU 6
- wSetDataSize EQU 7
- wSetZoomRect EQU 8
- wSetTitle EQU 9
- wSetColorTable EQU 10
- wSetFrameFlag EQU 11
- wGetOrgMask EQU 12
- wGetMaxGrow EQU 13
- wGetScroll EQU 14
- wGetPage EQU 15
- wGetInfoRefCon EQU 16
- wGetInfoDraw EQU 17
- wGetOrigin EQU 18
- wGetDataSize EQU 19
- wGetZoomRect EQU 20
- wGetTitle EQU 21
- wGetColorTable EQU 22
- wGetFrameFlag EQU 23
- wGetInfoRect EQU 24
- wGetDrawInfo EQU 25
- wGetStartInfoDraw EQU 26
- wGetEndInfoDraw EQU 27
- wZoomWindow EQU 28
- wStartDrawing EQU 29
- wStartMove EQU 30
- wStartGrow EQU 31
- wNewSize EQU 32
- wTask EQU 33
-
-